<html>
<head>
<title>Regression test for bug 20795 and 100445</title>
</head>
<body>
<p>
This is a test for https://bugs.webkit.org/show_bug.cgi?id=20795 and
https://bugs.webkit.org/show_bug.cgi?id=100445, it makes sure that
forms POSTed with a content-type of text/plain actually send data in text/plain
</p>

<form enctype="text/plain" method="post" action="resources/form-post-textplain.php" name="f">
    <input type="hidden" name="f1" value="This is field #1 &!@$%&#10;='<>">
    <input type="hidden" name="f2" value='This is field #2 ""'>
    <input type="submit" value="press me">
</form>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
}

document.f.submit();
</script>
</body>
</html>
